/**   
* @{#} IntKeyGen.java Create on 2013-4-5 下午2:17:12   
*   
* Copyright (c) 2012 by Baidu.   
*/
package objtable.core;

import java.util.Random;

/**   
* @author <a href="mailto:zhangbo07@baidu.com">zhangbo07</a>  
* @version 1.0   
*/

public class IntKeyGen {
	static int from = 1;

	static {
		from = new Random().nextInt(10000);
	}

	public synchronized static int nextInt() {
		return from++;
	}
}
